﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>综合信息管理平台</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="renderer" content="webkit">
    <link href="/CSS/bootstrap3.3.5/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <link href="/CSS/Base/lndex.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" src="/JqueryPlug/layer/layer/layer.js"></script>
    <script src="/Scripts/avalon.min.js"></script>
    <script src="/Scripts/SZHLCommon.js"></script>
    <style>
    </style>
    <script>

        var menudata = [
            { url: "/Admin/APPBaseView/APP_QYGG_List.html", name: "公告数据管理" },
            { url: "/Admin/APPBaseView/APP_QYGG_LMSZ.html", name: "公告栏目设置" },
            { url: "/Admin/APPBaseView/APP_GZRZ_List.html", name: "日报数据管理" },
            { url: "/Admin/APPBaseView/APP_GZRZ_Type.html", name: "日报类型设置" },
            { url: "/Admin/APPBaseView/APP_KHGL_List.html", name: "客户数据管理" },
            { url: "/Admin/APPBaseView/APP_KHGL_KHLB.html", name: "客户类型管理" },
            { url: "/Admin/APPBaseView/APP_JFBX_List.html", name: "经费数据管理" },
            { url: "/Admin/APPBaseView/APP_JFBX_LBSZ.html", name: "经费类型设置" },
            { url: "/Admin/APPBaseView/APP_JFBX_LCSZ.html", name: "经费流程设置" },
            { url: "/Admin/APPBaseView/APP_HDBM_List.html", name: "活动数据管理" },
            { url: "/Admin/APPBaseView/APP_LCSP_List.html", name: "审批流程列表" },
            { url: "/Admin/APPBaseView/APP_LCSP_LBSZ.html", name: "审批类型设置" },
            { url: "/Admin/APPBaseView/APP_CCXJ_List.html", name: "请假数据管理" },
            { url: "/Admin/APPBaseView/APP_CCXJ_JBSZ.html", name: "请假类型设置" },
            { url: "/Admin/APPBaseView/APP_CCXJ_LCSZ.html", name: "请假流程设置" }, 
            { url: "/Admin/APPBaseView/APP_LSGLList.html", name: "老师数据管理" }
        ];
        var menuAdmindata = [{ url: "/Admin/CompanyInfo.html", name: "企业信息" },
                            { url: "/Admin/YGGL.html", name: "员工管理" },
                            { url: "/Admin/ZWQX.html", name: "角色权限" },
                            { url: "/Admin/AppSet.html", name: "应用管理" },
                            { url: "/Admin/AppSet.html", name: "企业配置" },
                            { url: "/View/APPBaseView/QYWD/APP_QYWD_GR.html?root=1", name: "企业文件夹配置" }];

        var model = avalon.define({
            $id: "Index",
            modelData:[],
            LoadMenu: function (dom) {
                var Id=0;
                if (dom) {
                    Id =$(dom).attr("Id");
                }
                model.modelData =Id == 0 ? menuAdmindata : menudata;
            },
            MenuClick: function (dom) {
                $(".menuson  li").siblings().removeClass("active");
                $(dom).addClass("active");
                $(".menutab li a").html($(dom).text());
            }
        });
        avalon.ready(function () {
            model. LoadMenu();
        })

        function SetFrameHeight(framename) {
            var oFrm = document.getElementById(framename);
            oFrm.onload = oFrm.onreadystatechange = function () {
                if (this.readyState && this.readyState != 'complete') return;
                else {
                    var mainheight = $("#dvContent").height() - 45;
                    $("#" + framename).height(mainheight);
                    $("#mastmenu").height(mainheight);
                    $(window.frames[framename].document).find(".maindiv").css({ height: mainheight + "px", overflow: "auto" });
                }
            }
        }
        $(function () {
           
            //刷新
            $("#btsximg").click(function () {
                var framename = $("iframe:visible").attr('name');
                frames[framename].location.reload();
            })
        })
    </script>
</head>
<body ms-controller="Index">
    <div id="topdv" style="z-index: 50; position: absolute; left: 0px; right: 0; height: 88px; background-image: url(/images/Index/top_bg.png)" class="colorBg3">
        <ul class="nav" style="position: absolute; left:280px">
            <li id="0" ms-click="LoadMenu(this)">
                <a href="#" style="padding:0">
                    <img src="/images/icon06.png"><h2 style="margin:0">系统管理</h2>
                </a>
            </li>
            <li id="1" ms-click="LoadMenu(this)">
                <a href="#" style="padding:0">
                    <img src="/images/i05.png" style="width:45px;height:45px"><h2 style="margin:0">数据管理</h2>
                </a>
            </li>
        </ul>
        <div class="topright" style="position: absolute; right: 0px; font-size: 16px">
            <ul>
                <li>
                    <span>
                        <img src="/images/Index/help.png" title="帮助" class="helpimg" />
                    </span>
                </li>
                <li><a href="/login.html">退出</a></li>
            </ul>
            <div class="user" style="cursor: pointer">
                <span></span>
            </div>
        </div>
    </div>

    <div style="clear: right; width: 167px; position: absolute; top: 88px;" id="leftdv">
        <dl class="leftmenu" id="mastmenu">
            <dd>
                <div>
                    <div class="title"><span><img src="/images/Index/leftico01.png"></span>系统设置</div>
                    <ul class="menuson">
                        <li ms-repeat-item="modelData" ms-class="active:$index==0" ms-click="MenuClick(this)"><a ms-attr-href="item.url" target="main">{{item.name}}</a></li>
                    </ul>
                </div>
            </dd>
        </dl>
    </div>
    <div style="position: absolute; top: 88px; right: 0px; left:167px; bottom: 0px;" id="dvContent">
        <div class="place">
            <ul class="menutab">
                <li>
                    <a class="selected">
                        企业信息
                    </a>
                </li>
            </ul>
            <div style="padding-top: 8px; float: right; padding-right: 8px;">
                <img src="/images/Index/sync.png" style="cursor: pointer; margin-right: 10px" title="刷新当前页面" id="btsximg">
                <img src="/images/Index/t05.png" style="cursor: pointer; margin-right: 10px;display:none;" title="个人设置" id="imgSet">
            </div>
        </div>
        <div id="tab1" class="tabContent">
            <iframe marginwidth="0" class="tabiframe" marginheight="0" frameborder="0" scrolling="no" height="100%" id="main" name="main" width="100%" src="/Admin/CompanyInfo.html"></iframe>
        </div>
    </div>
    <script type="text/javascript">
        SetFrameHeight('main')
    </script>
    <input id="hidUserName" type="hidden" value="" />
</body>
</html>
